import math

x = 1
n = 4
result = 0
for k in range(n + 1):
    result += (x ** k) / math.factorial(k)
print("e的近似值:", result)